package com.itheima.mapper;

import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.Set;

public interface UserMapper {
    User findUserByUsername(String username);

    Set<Role> findRolesByUserId(Integer userId);

    Set<Permission> findPermissionByRoleId(Integer roleId);
}
